package com.kystar.muxplayer.protocol.code.set;

import com.kystar.muxplayer.protocol.CodeCmd;

public class CS03_ConcatMode extends CodeCmd {
    private CS03_ConcatMode(int row,int col) {
        super(row,col);
    }

    @Override
    public byte getCode() {
        return 0x03;
    }


    public static CS03_ConcatMode create(int concatMode) {
        int row = 1, col = 1;
        switch (concatMode) {
            case 0:
                row = 1;
                col = 1;
                break;
            case 1:
                row = 1;
                col = 4;
                break;
            case 2:
                row = 4;
                col = 1;
                break;
            case 3:
                row = 2;
                col = 2;
                break;
            default:
        }
        return new CS03_ConcatMode(row,col);
    }
}
